

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=9,chrome=1">
<meta charset="utf-8">
    <!-- 如果是ie浏览器 使用ie9渲染即可 -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>视频播放</title>
    <link href="/css/play/indexbase.css" rel="stylesheet" type="text/css" />
    <link href="/css/courseyunPlay/questionPlay.css" rel="stylesheet" type="text/css" />
    
    <script src="/js/common.js"></script>
</head>
<body id="body" >

<!--播放器-->
<div class="mVideo sd act">
    <div id="video" style='width: 100%;height:100%;position:relative;'></div>
    <!--控制区-->
    <div class="footBar" id='controlDiv'>
        <div class="optMBox">
            <div class="vivid">
                <a id="flvName"></a>
                <div class="vivibox">
                </div>
            </div>
            <a id="optModeP" class="optModeA" title="切换PPT/视频"></a>
        </div>
    </div>
</div>
<!--列表-->
<div id="chapterTablist" class="mList sd act appActive">
    <div class="ths">关键目录</div>
    <table border="0" cellspacing="0" cellpadding="0" class="mTable">
        <tr>
            <td>
                <ul id="keypointbox">
                </ul>
            </td>
        </tr>
    </table>
</div>
<!--ppt-->
<div id="pptTablist" class="mPPT sd act">
    <ul class="pptUl" id="pptbox">
    </ul>
    <div class="pptOpt"><a class="l" href="javascript:attrset.prevppt();" title="上一页"></a><a class="r" href="javascript:attrset.nextppt();" title="下一页"></a></div>
</div>
<iframe id="frame" style="height:1px;width:1px;display:none;"></iframe>


<div id="courseTestDiv" style="display: none;">
    <div class="layer-box m0">
        <h3>
            <span>小节测试<label style='margin-left:30%;color:red;'>温馨提示：请您仔细答题，测试不通过，将自动重新开始学习。</label></span>
        </h3>
        <div class="layer-wrap-content">
            <ul class="select_y mt20">
                <li>
                    <h5 id="questionContent" style="font-size: 16px; margin-left: 10%;"></h5>
                    <p id='optionContent' style="font-size: 16px; margin-left: 10%;"></p>
                </li>
            </ul>
            <div class="layer-button cb" style="margin-top: 50px;">
                <div style='text-align: center'>
                    <a onclick='answerQuestion()' id="answerQuestion"
                       style='text-decoration: none;' href="javascript:;"
                       class="answer-btn"><span id='answerText'>提交</span> </a>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script src="/js/jquery-1.9.1.min.js"></script>
<script src="/js/jquery-browser-support-byzlg.js"></script>
<script type="text/javascript">var logCenterAddress = "https://rxlog.chinahrt.com";</script>
<script type="text/javascript" src="/js/log/businesslog.js?v=1233"></script>
<script src="/js/layer/layer.js?1616671199606"></script>
<script type="text/javascript">
    function getPath(obj){
        var path="";
        if("-1"==obj.platformId){
            //代表是外部视频地址方式调用    为了解决中文乱码问题    需要使用s=1,f='获取视频地址的url'方式调用来解决这个问题
            path="-1#"+obj.videoTransUrl;
        }else{
            path=obj.videoTransUrl;
        }
        return path;
    }
</script>
<script type="text/javascript">
    var questionList=eval();
    var timeSet=eval();
    var attrset=new Object();
    var domain = window.location.host;
    if(domain.split("chinahrt.com.cn").length>1){
        document.domain="chinahrt.com.cn";
    }else if(domain.split("chinahrt.com").length>1){
        document.domain="chinahrt.com";
    }
    //控制属性值设置
    attrset.ifShowPauseAd=true;					//是否显示广告	√
    attrset.ifCanDrag=false;						//是否可以拖动   √
    attrset.businessId="gp5";					//业务id	区分各大平台
    //抓拍相关
    var seconds='';
    if(seconds!=''){
        attrset.secondsArray=seconds.split(",");
    }
    if(attrset.businessId=="gp5"&&seconds==''){
        attrset.lastPlayTime=0.0+2;
    }else{
        attrset.lastPlayTime=0.0-2;				//上次播放位置	√
    }
    if(attrset.lastPlayTime<0)attrset.lastPlayTime=0;
    attrset.ifPauseBlur=true;					//失去焦点是否暂停   √
    attrset.defaultClarity="283001";			//默认视频清晰度 √
    attrset.ifRecord=true;					//是否保存学习记录 管理员测试时使用
    attrset.sectionId="55c85cb9-dd88-42c7-89bc-d5ab2a0a68e2";						//播放的章节id
    attrset.adResourceAddress="";	//广告资源地址
    attrset.adLinkAddress="";			//广告资源链接地址
    attrset.proxyUrl="https://web.chinahrt.com/index.html#/v_proxy?trainplanId=41930878996c4be7b26e63d2063158c7&courseId=335e4d03-0e6d-4c96-8062-2fb99a54e314&sectionId=55c85cb9-dd88-42c7-89bc-d5ab2a0a68e2";						//视频播放完毕后调用的代理页面地址（解决跨域调用的问题）
    attrset.domain="https://109.chinahrt.com.cn/";							//动态域名（各个平台播放时域名独立--统计cdn流量费用）
    attrset.signId="109#41930878996c4be7b26e63d2063158c7#e45bde79-dc6d-4f18-9b52-008bc3708b6d";							//用户的唯一标识
    attrset.videoId="55c85cb9-dd88-42c7-89bc-d5ab2a0a68e2video";						//播放的视频id
    attrset.nextUrl="";						//下一章节的播放地址（课程详情页面调用课程云自身的时使用）
    attrset.maxTime=attrset.lastPlayTime;
    attrset.autoPlay=0;
    //本次实际观看视频所花时间
    attrset.actualLearnTime=0;
    var maxPlayTime='';
    if(maxPlayTime!=''){
        attrset.maxPlayTime=parseInt(maxPlayTime);
    }
    var date = new Date();
    var startTime = date.getTime();
    if (attrset.ifRecord) {
        attrset.recordId = "aaf0075d03a241678e463a05798de43a";
        attrset.updateRedisMap = "1";
        attrset.studyCode = "d3684ce701904df9a99a612fd90bbc46";
        if (attrset.updateRedisMap == '1') {
            //需要记录进度，且记录页面停留时间 为防止重复，sendLog只在beforeunload监听中加！
            $(window).bind('beforeunload', function (e) {
                leavePage(attrset.currentTime);
                sendLog();
            });
            $(window).unload(function () {
                leavePage(attrset.currentTime);
            });
        } else {
            //无需记录进度，需要记录页面停留时间
            $(window).bind('beforeunload', function (e) {
                sendLog();
            });
        }
    } else {
        attrset.lastPlayTime = 0;
        $(window).bind('beforeunload', function (e) {
            sendLog();
        });
    }
    //ppt属性值设置
    var existPPT=false;
    if("true"=="true"){
        existPPT=true;
        attrset.pptList=eval([{"time":0,"url":"https://109.chinahrt.com.cn//courseyun/admin/upload/admin/image/201607/d3e06f0b8dc64941853919d5d10d2042.jpg"},{"time":31,"url":"https://109.chinahrt.com.cn//courseyun/admin/upload/admin/image/201607/82d7f7427e0049518aed2b0a08c0312f.jpg"},{"time":53,"url":"https://109.chinahrt.com.cn//courseyun/admin/upload/admin/image/201607/00630d6d249a45c4bba8c09f4c7ff652.jpg"},{"time":120,"url":"https://109.chinahrt.com.cn//courseyun/admin/upload/admin/image/201607/0e76f01f59ff47e29e98f43a827d2929.jpg"},{"time":123,"url":"https://109.chinahrt.com.cn//courseyun/admin/upload/admin/image/201607/b285e976954c43049ff203309b2e7efb.jpg"},{"time":264,"url":"https://109.chinahrt.com.cn//courseyun/admin/upload/admin/image/201607/076050dc20b944fa9862803c49669bf0.jpg"},{"time":282,"url":"https://109.chinahrt.com.cn//courseyun/admin/upload/admin/image/201607/ab4b73e80817496397e50e3a254286b3.jpg"},{"time":298,"url":"https://109.chinahrt.com.cn//courseyun/admin/upload/admin/image/201607/65573eb0951d4c6fba144a429a6867e0.jpg"},{"time":311,"url":"https://109.chinahrt.com.cn//courseyun/admin/upload/admin/image/201607/814c2d71ba5b45b4b8eb1eed5550f0ac.jpg"},{"time":564,"url":"https://109.chinahrt.com.cn//courseyun/admin/upload/admin/image/201607/6e31b9a7800a44359a981dfce16d5796.jpg"},{"time":639,"url":"https://109.chinahrt.com.cn//courseyun/admin/upload/admin/image/201607/04c03ef39c6047cda7025b8e83e26a34.jpg"},{"time":652,"url":"https://109.chinahrt.com.cn//courseyun/admin/upload/admin/image/201607/2038480975ff43d7838c2bc261be9d98.jpg"},{"time":716,"url":"https://109.chinahrt.com.cn//courseyun/admin/upload/admin/image/201607/3e08eee2dc4a44128b11436c918a31ec.jpg"},{"time":750,"url":"https://109.chinahrt.com.cn//courseyun/admin/upload/admin/image/201607/d196093ea4d34906bd7657d37dbd1095.jpg"},{"time":773,"url":"https://109.chinahrt.com.cn//courseyun/admin/upload/admin/image/201607/aec90ac4b6fe43d2881619b542270f9c.jpg"},{"time":785,"url":"https://109.chinahrt.com.cn//courseyun/admin/upload/admin/image/201607/c95a3364a3024efcbfa6b9ee0e8693a8.jpg"},{"time":792,"url":"https://109.chinahrt.com.cn//courseyun/admin/upload/admin/image/201607/25d8938472ef4f999d8c04d7af10f3c5.jpg"},{"time":811,"url":"https://109.chinahrt.com.cn//courseyun/admin/upload/admin/image/201607/8832ba56d6cd48e4b4c743787221cc2e.jpg"},{"time":829,"url":"https://109.chinahrt.com.cn//courseyun/admin/upload/admin/image/201607/c6657f581a804eb4aaa981cd1544d656.jpg"},{"time":847,"url":"https://109.chinahrt.com.cn//courseyun/admin/upload/admin/image/201607/e8a560be12bf4043a8e30feaab2bae39.jpg"}]);
    }
    //关键点相关
    var existKeyPoint=false;
    if("true"=="true"){
        existKeyPoint=true;
        attrset.keypointList=eval([{"name":"复核和申诉的内涵","timeStr":"04:24","time":264},{"name":"复核和申诉的原则","timeStr":"09:24","time":564},{"name":"复核的申请和受理","timeStr":"10:39","time":639},{"name":"申诉的提出和受理","timeStr":"11:56","time":716}]);
    }
    //如果存在时间点 ppt 任意一个 onlyFlv=false;
    var onlyFlv = false; //是否只有一个视频
    if(!existPPT&&!existKeyPoint){
        onlyFlv=true;
    }
    if(onlyFlv){
        $("#controlDiv").remove();
    }
</script>
<script type="text/javascript" src="/player/ckplayerx1/ckplayer/ckplayer.js?version=2" charset="UTF-8"></script>
<script src="/js/player/base.js"></script>
<script type="text/javascript">
    //视频清晰度及播放器相关属性
    var claritys=eval([{"createTime":1495097685000,"createUser":"gpcourse1","id":"938344dd58734d09acc6c4bef04d422f","ifSplitVideo":true,"platformId":"gp5","splitInfos":[{"createTime":1495098819000,"createUser":"gpcourse1","endTimePoint":"00:05:00","filePath":"https://109.chinahrt.com.cn/courseyun//subVideo/938344dd58734d09acc6c4bef04d422f/1.mp4","fileSize":14196013,"id":"4dd9bfcb5e7b4fe7ada8f0712fad454a","platformId":"gp5","sort":1,"startTimePoint":"00:00:00","totalLength":300,"videoId":"55c85cb9-dd88-42c7-89bc-d5ab2a0a68e2video","videoTranscodeId":"938344dd58734d09acc6c4bef04d422f"},{"createTime":1495098887000,"createUser":"gpcourse1","endTimePoint":"00:10:00","filePath":"https://109.chinahrt.com.cn/courseyun//subVideo/938344dd58734d09acc6c4bef04d422f/2.mp4","fileSize":14266151,"id":"a9a05b5073d24dc7859f492d69fc45e5","platformId":"gp5","sort":2,"startTimePoint":"00:05:00","totalLength":300,"videoId":"55c85cb9-dd88-42c7-89bc-d5ab2a0a68e2video","videoTranscodeId":"938344dd58734d09acc6c4bef04d422f"},{"createTime":1495098929000,"createUser":"gpcourse1","endTimePoint":"00:15:00","filePath":"https://109.chinahrt.com.cn/courseyun//subVideo/938344dd58734d09acc6c4bef04d422f/3.mp4","fileSize":13878027,"id":"f346c1a29bb94627a1604ba23a3cebee","platformId":"gp5","sort":3,"startTimePoint":"00:10:00","totalLength":300,"videoId":"55c85cb9-dd88-42c7-89bc-d5ab2a0a68e2video","videoTranscodeId":"938344dd58734d09acc6c4bef04d422f"},{"createTime":1495098977000,"createUser":"gpcourse1","endTimePoint":"00:21:46","filePath":"https://109.chinahrt.com.cn/courseyun//subVideo/938344dd58734d09acc6c4bef04d422f/4.mp4","fileSize":19034616,"id":"1aaabb02dd18465d9693a97e3ba8f754","platformId":"gp5","sort":4,"startTimePoint":"00:15:00","totalLength":406,"videoId":"55c85cb9-dd88-42c7-89bc-d5ab2a0a68e2video","videoTranscodeId":"938344dd58734d09acc6c4bef04d422f"}],"videoClarity":"283001","videoClarityName":"流畅","videoFormat":"mp4","videoFramerate":"25","videoId":"55c85cb9-dd88-42c7-89bc-d5ab2a0a68e2video","videoRate":"375262","videoResolution":"854x480","videoTime":"00:21:46","videoTransSize":"61302153","videoTransStatus":"285003","videoTransUrl":"https://109.chinahrt.com.cn/courseyun//transcode/55c85cb9-dd88-42c7-89bc-d5ab2a0a68e2video/283001-mp4.mp4"},{"createTime":1488174625000,"createUser":"gpcourse1","id":"8503f82f-dc98-4fc2-b97b-c6b50a88781c","platformId":"gp5","videoClarity":"283005","videoClarityName":"源视频","videoFormat":"mp4","videoFramerate":"25","videoId":"55c85cb9-dd88-42c7-89bc-d5ab2a0a68e2video","videoRate":"1135612","videoResolution":"960x540","videoTime":"00:21:46","videoTransSize":"185508183","videoTransStatus":"285003","videoTransUrl":"https://109.chinahrt.com.cn//courseyun/yunpingtai/gpcourse1/videos/20172/55c85cb9-dd88-42c7-89bc-d5ab2a0a68e2.mp4"}]);
    var arr=[];
    var protocol=window.location.protocol;
    var allM3u8=true;
    for(var i=0;i<claritys.length;i++){
        if (claritys[i].videoClarity == '283005') {
            continue;
        }
        var obj = [];
        var url = getPath(claritys[i]);
        var type = "video/mp4";
        if (url.split("-m3u8").length > 1) {
            type = "video/m3u8";
            if (claritys[i].createTime > 1524153600000) {
                url += ".m3u8";
            }
            if(!allM3u8){
                arr=new Array();
                allM3u8=true;
            }
        } else {
            if(allM3u8&&arr.length>0){
                continue;
            }
            allM3u8 = false;
        }
        url = url.replace("http:", "https:");
        obj.push(url);
        obj.push(type);
        obj.push(claritys[i].videoClarityName);
        var num = 0;
        if (arr.length == 0) {
            num = 10;
        }
        obj.push(num);
        arr.push(obj);
    }
    if(arr.length==0){
        for(var i=0;i<claritys.length;i++){
            var obj = [];
            var url = getPath(claritys[i]);
            var type = "video/mp4";
            if (url.split("-m3u8").length > 1) {
                type = "video/m3u8";
                if (claritys[i].createTime > 1524153600000) {
                    url += ".m3u8";
                }
            } else {
                allM3u8 = false;
            }
            url = url.replace("http:", "https:");
            obj.push(url);
            obj.push(type);
            obj.push(claritys[i].videoClarityName);
            var num = 0;
            if (arr.length == 0) {
                num = 10;
            }
            obj.push(num);
            arr.push(obj);
        }
    }
    var videoObject = {
        container: '#video', //容器的ID或className
        variable: 'player', //播放函数名称
        loop: false, //播放结束是否循环播放
        autoplay: false,//是否自动播放
        loaded:"loadedHandler",
        html5m3u8:true,
        seek:parseInt(attrset.lastPlayTime),
        video: arr,
        playbackRate:true
    };
    var firstSeek=true;
    if(attrset.ifShowPauseAd){
        if(attrset.adResourceAddress==''){
            attrset.adResourceAddress="/images/adver-md.jpg";
            attrset.adLinkAddress="http://download.chinahrt.com";
        }
        videoObject.adpause=attrset.adResourceAddress;
        videoObject.adpauselink=attrset.adLinkAddress;
    }
    if(typeof(attrset.maxPlayTime)!='undefined'&&attrset.maxPlayTime<=0){
        layer.alert("今日学习时间已达上限，请明天再继续学习。");
    }else{
        setTimeout('setVideo();',2000);
    }
    var player;
    function setVideo(){
        player = new ckplayer(videoObject);
    }
</script>
<script type="text/javascript" src="/js/player/ppt_keypoint_setup.js" charset="utf-8"></script>
<script src='/js/player/question_play.js?version=3' type='text/javascript'></script>
<script src='/js/player/respond.js' type='text/javascript'></script>
<script type="text/javascript">
    //页面加载
    $(document).ready(function () {
        $('.mPPT').hover(function () {
            $('.pptOpt a').show();
        }, function () {
            $('.pptOpt a').hide();
        });
        document.onselectstart = new Function('return false');
        $("a.optDoc").click(function () {
            $("#body").addClass("PtD");
            $("#body").removeClass("PtV");
            $("a.optDoc").hide();
            $("a.optPPT").show();
        });
        $("a.optPPT").click(function () {
            $("#body").removeClass("PtD");
            $("#body").removeClass("PtV");
            $("a.optDoc").show();
            $("a.optPPT").hide();
        });
        $("a#optModeP").click(function () {
            if ($("#body").hasClass("PtV")) {
                $("#body").removeClass("PtV");
                $("#body").removeClass("PtD");
                $(this).addClass('optModeA').removeClass('optModeB');
            }
            else {
                $("#body").addClass("PtV");
                $("#body").removeClass("PtD");
                $(this).addClass('optModeB').removeClass('optModeA');
                if ($('a.optPPT').is(':visible') == false) {
                    $("a.optDoc").show();
                    $("a.optPPT").hide();
                }
            }
        });
        $('.mTag li').each(function (i, n) {
            $(n).click(function () {
                $('.mTag li').removeClass('On');
                $(this).addClass('On');
                $('.sd').removeClass('appActive');
                $('.' + $(this).attr('tag')).addClass('appActive');
            });
        });
        if(attrset.ifPauseBlur){
            setPauseBlur();
        }
        initLog();
    });

    function setPauseBlur(){
        var v = getIeVersion();
        if(v==-1 || v>8){
            window.onblur=function(){blurStop();};
            window.onfocus=function(){focusStart();};
        }
        else{
            document.onfocusout = function(){focusOutStop();};
            document.onfocusin = function(){focusInStart();};
        }
    }

    function removePauseBlur(){
        var v = getIeVersion();
        if(v==-1 || v>8){
            window.onblur=function(){};
            window.onfocus=function(){};
        }else{
            document.onfocusout = function(){};
            document.onfocusin = function(){};
        }
    }

    function loadedHandler(){
        //如果设置不可以拖动 需要定时任务设置播放最大时长
        attrset.maxTime=attrset.lastPlayTime;
        player.addListener('time',timeHandler);
        //是否记录学习进度
        if(attrset.ifRecord){
            //每30s提交一次学习进度
            setInterval("courseyunRecord()",30000);
        }
        player.addListener('ended',endedHandler);
        player.addListener('seekTime',seekingHandler);
        player.addListener('definitionChange',definitionChangeHandler);
        player.addListener('play',playHandler);
        player.addListener('pause',pauseHandler);
    }

    function endedHandler(){
        player.videoClear();
        $.ajax({
            url:"/videoPlay/takeRecord",
            data:{studyCode:attrset.studyCode,recordUrl:attrset.recordUrl,updateRedisMap:attrset.updateRedisMap,recordId:attrset.recordId,sectionId:attrset.sectionId,signId:attrset.signId,isEnd:true,businessId:attrset.businessId},
            dataType:"json",
            type:"post",
            success:function(data){
                if(data.status=='0'){
                    if(attrset.nextUrl!=''){
                        window.location.href=nextUrl;
                    }
                }
                if(attrset.proxyUrl!=''){
                    $("#frame").attr("src",attrset.proxyUrl+"#end");
                    $("#frame").css("display","block");
                }
            }
        });
    }

    /***
     * 切换清晰度
     * @param title 切换到的清晰度名称
     */
    var isAudio=false;
    function definitionChangeHandler(title){
        if(typeof(title)!='undefined'&&title=='音频'&&attrset.ifRecord){
            //切换到音频后 如果有ifPauseBlur的逻辑，去掉！
            removePauseBlur();
            isAudio=true;
        }
        if(isAudio&&typeof(title)!='undefined'&&title!='音频'&&attrset.ifRecord){
            //从音频切换回视频，再把ifPauseBlur的逻辑，加上！
            setPauseBlur();
            isAudio=false;
        }
    }

    function blurStop(){
        player.videoPause();
    }
    //获得焦点 重新开始播放
    function focusStart(){
    }
    function focusOutStop(){
        blurStop();
    }
    function focusInStart(){
    }
    function getIeVersion(){
        var userAgent = navigator.userAgent.toLowerCase();
        if(userAgent.match(/msie ([\d.]+)/)!=null){
            //ie6--ie9
            uaMatch = userAgent.match(/msie ([\d.]+)/);
            //return 'IE'+uaMatch[1];
            return uaMatch[1];
        }
        else if(userAgent.match(/(trident)\/([\w.]+)/)){
            uaMatch = userAgent.match(/trident\/([\w.]+)/);
            switch (uaMatch[1]){
                case "4.0":
                    return 8 ;
                    break;
                case "5.0":
                    return 9 ;
                    break;
                case "6.0":
                    return 10;
                    break;
                case "7.0":
                    return 11;
                    break;
                default:
                    return -1 ;
            }
        }
        return -1;
    }

    function timeHandler(number){
        if(typeof(number)!='undefined'){
            attrset.currentTime=number;
        }
        if(typeof(number)!='undefined'&&number>attrset.maxTime){
            attrset.maxTime=number;
        }
        if(typeof(number)!='undefined'&&existPPT){
            var rightIndex=attrset.getIndexByTime(number,false);
            if(rightIndex!=-1&&rightIndex!=attrset.currentpptIndex){
                attrset.showpptByIndex(rightIndex, false);
            }
        }
        if(ifSetQuestion){
            judgeOpenQuestion(number);
        }
        if(attrset.secondsArray){
            judgeCallback(number);
        }
        if(attrset.maxPlayTime){
            judgeMaxPlayTime(number);
        }
    }
    function judgeMaxPlayTime(number){
        if(typeof(number)!="undefined"&&number!=null&&number!=''){
            if(number>=attrset.maxPlayTime){
                try {
                    player.quitFullScreen();
                }catch (e) {
                }
                player.videoPause();
                player.videoClear();
                layer.alert("今日学习时间已达上限，请明天再继续学习。");
                $("#video").remove();
            }
        }
    }
    function judgeCallback(number){
        if(typeof(number)!="undefined"&&number!=null&&number!=''){
            for(var i=0;i<attrset.secondsArray.length;i++){
                //秒数=当前秒数 & 最大时间-当前时间小于1秒钟
                if(parseInt((number+"").split(".")[0])==attrset.secondsArray[i]&&attrset.maxTime-number<1){
                    player.videoPause();
                    //暂停视频弹出验证
                    try {
                        player.quitFullScreen();
                    }catch (e) {
                    }
                    attrset.secondsArray.splice(i, 1);
                    var html='<iframe src="'+attrset.proxyUrl+'#'+parseInt((number+'').split('.')[0])+'"  style="height:1px;width:1px;display:none;"></iframe>';
                    $("body").append(html);
                }
            }
        }
    }

    function seekingHandler(time){
        if(existPPT){
            if(typeof(time)=='undefined'||time==null){
                attrset.showpptByIndex(0);
            }else{
                if(!isNaN(time)){
                    attrset.showpptByTime(time,true);
                }
            }
        }
    }
    function courseyunRecord(){
        if(attrset.maxTime<=attrset.lastPlayTime){
            return;
        }
        $.ajax({
            url:"/videoPlay/takeRecord",
            data:{studyCode:attrset.studyCode,recordUrl:attrset.recordUrl,updateRedisMap:attrset.updateRedisMap,recordId:attrset.recordId,sectionId:attrset.sectionId,signId:attrset.signId,time:attrset.maxTime,businessId:attrset.businessId},
            dataType:"json",
            type:"post",
            success:function(data){
                if(data.status=='0'){
                    attrset.lastPlayTime=attrset.maxTime;
                }else if(data.status=='-1'){
                    //停止播放
                    alert("不允许同时观看多门课程,请关闭当前页面");
                    try {
                        player.quitFullScreen();
                    }catch (e) {
                    }
                    player.videoClear();
                    $("#video").remove();
                }
            }
        });
    }

    /***
     * 消息监听
     */
    window.addEventListener('message',function(e){
        if(e.data=='play'){
            player.videoPlay();
        }else if(e.data=='pause'){
            try {
                player.quitFullScreen();
            }catch (e) {
            }
            player.videoPause();
        }else if(e.data=='getMaxPlayTime'){
            var time=attrset.maxTime;
            window.parent.postMessage("getMaxPlayTime:"+time,'*');
        }else if(e.data=='getValidStudyTime'){
            //前提是记录进度，如果学习已学完的课程，这个值不记录
            var time=0;
            if(attrset.ifRecord){
                time=attrset.maxTime-attrset.lastPlayTime;
            }
            window.parent.postMessage("getValidStudyTime:"+time,'*');
        }if(e.data=='playValid'){
            player.videoPlay();
            pauseFlag2=0;
        }
    },false);

    var pauseFlag=0;
    var pauseFlag2=0;

    function h5Pause() {
        
    }
    function h5Play(){
        
    }

</script>
<script src='/js/player/player_common.js?version=5' type='text/javascript'></script>

</html>





<!DOCTYPE html>

<html lang="zh-CN">

<head>

<meta charset="utf-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<meta name="viewport" content="width=device-width, initial-scale=1">

<title></title>

<script type="text/javascript" src="/js/jquery-1.9.1.min.js?1616777809407" charset="utf-8"></script>

<script type="text/javascript" src="/js/scorm/ReloadAPIAdaptor.js?1616777809407" charset="utf-8"></script>

<script type="text/javascript">

    var domainVal =window.location.host;

    if(domainVal=='videoadmin.chinahrt.com'){

        window.location.href=window.location.href.replace("videoadmin.chinahrt.com","videoadmin.chinahrt.com.cn");

    }

    var firstIndex=domainVal.indexOf(".");

    domainVal=domainVal.substr(firstIndex+1,domainVal.length);

    if(domainVal.split(":").length>1){

        domainVal=domainVal.substr(0,domainVal.indexOf(":"));

    }

    function stopmenu(){

        return false;

    }

    document.oncontextmenu=stopmenu;

    document.domain=domainVal;

	var API = new GenericAPIAdaptor;

	

	if("1"=='1'){

		loadDataIntoModel("cmi.core.lesson_location","");

	}

	var attrset=new Object();

	attrset.updateRedisMap="1";

	attrset.recordUrl="https://yun.chinahrt.com/yunapi/course/update_learn_record";

	attrset.updateRedisMap="1";

	attrset.signId="109#41930878996c4be7b26e63d2063158c7#e45bde79-dc6d-4f18-9b52-008bc3708b6d";

	attrset.businessId="gp5";

	attrset.sectionId="079098aa-0190-4784-bd58-26021606a756";

	

	$(document).ready(function(){

		resizeIframe();

		$("#videoForm").submit();

		window.onresize = function () {resizeIframe();}

	});

	function resizeIframe(){

		var pageHeight=document.documentElement.clientHeight;

		var topHeight=0;

		$("#playFrame").attr("height",pageHeight-topHeight);

	}

	

	function ajaxSubmitData(){

		//alert('ajaxSubmitData:'+API.cmi.core.lesson_location.cmivalue);

		if("1"=='1'){

			var lessonLocation = API.cmi.core.lesson_location.cmivalue;

			var lessonStatus = API.cmi.core.lesson_status.cmivalue;

			$.ajax({

				url:"/videoPlay/takeOutScormRecord",

				type:"post",

				data:{progressId:"613a1dfa5605477497d214a53b006d53",lessonLocation:lessonLocation,lessonStatus:lessonStatus,recordUrl:attrset.recordUrl,updateRedisMap:attrset.updateRedisMap},

				dataType:"json",

				success:function(data){

					

				},error:function(){

					

				}

			});

		}

	}



	function finishSubmitData(){

		if("1"=='1'){

			var lessonStatus = API.cmi.core.lesson_status.cmivalue;

			$.ajax({

				url:"/videoPlay/finishOutScorm",

				type:"post",

				data:{progressId:"613a1dfa5605477497d214a53b006d53",lessonStatus:lessonStatus,recordUrl:attrset.recordUrl,updateRedisMap:attrset.updateRedisMap},

				dataType:"json",

				success:function(data){

					

				},error:function(){

					

				}

			});

		}

	}

	if(attrset.updateRedisMap=='1'){

	    $(window).bind('beforeunload', function (e) { 

	    	$.ajax({

	    		url:"/videoPlay/endPlay",

	    		data:{recordUrl:attrset.recordUrl,recordId:"613a1dfa5605477497d214a53b006d53",sectionId:attrset.sectionId,signId:attrset.signId,businessId:attrset.businessId},

	    		success:function(data){

	    			

	    		}

	    	});

	    });

		$(window).unload( function () {

			$.ajax({

	    		url:"/videoPlay/endPlay",

	    		data:{recordUrl:attrset.recordUrl,recordId:"613a1dfa5605477497d214a53b006d53",sectionId:attrset.sectionId,signId:attrset.signId,businessId:attrset.businessId},

	    		success:function(data){

	    			

	    		}

	    	});

		});

	}

</script>

</head>

<body>

	<!-- 左侧章节列表 -->

	<div id='leftDiv'>

		

	</div>

	<!-- 右侧播放区 -->

	<div id='rightDiv'>

		<iframe onload="playFrame.focus();" name="playFrame" id='playFrame' src="about:blank" width="100%" frameborder="no" border="0" marginwidth="0" marginheight="0" ></iframe>

	</div>

	

	<div style='display:none'>

		<form id='videoForm' action="https://109.chinahrt.com.cn/courseyun/outCourse/guochen2503/index.html?" method='GET' target="playFrame">



		</form>

	</div>

</body>

<script>

var _hmt = _hmt || [];

(function() {

  var hm = document.createElement("script");

  hm.src = "https://hm.baidu.com/hm.js?69ccfa3777e8e6193e66dde22ab2c896";

  var s = document.getElementsByTagName("script")[0]; 

  s.parentNode.insertBefore(hm, s);

})();

</script>

</html>

attrset.recordId = "67de06fa42334ff885cb4ea19edb8335";
        attrset.updateRedisMap = "1";
        attrset.studyCode = "5fd396879cda49398b9d8e3cb8a65563";

        attrset.recordId = "67de06fa42334ff885cb4ea19edb8335";
        attrset.updateRedisMap = "1";
        attrset.studyCode = "7f75c4e0831e4302ac85140cc429e81a";
        if (attrset.updateRedisMap == '1') {